package com.example.togethermove.bean;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import com.example.togethermove.R;
import com.example.togethermove.ui.fragment.CompetitonFragment;
import com.example.togethermove.ui.fragment.HonorFragment;
import com.example.togethermove.ui.fragment.MineFragment;
import com.example.togethermove.ui.fragment.SportmaseterFragment;


/**
 *
 **/
//"NEWS","TWEET","SELECT","EXPLORE","ME"

/*String[] titles
        int[] images
        Class[] clss =
        String[] tags =*/


public enum MainTabs {
    NEWS("健将", R.drawable.selector_tab_mastersportman__, SportmaseterFragment.class, "健将", null),
    TWEET("荣誉", R.drawable.selector_tab_honor__, HonorFragment.class, "荣誉", null),
    SELECT("一起动", R.drawable.selector_tab_competition__, CompetitonFragment.class, "一起动", null),
    EXPLORE("赛事", R.drawable.selector_tab_competition__, MineFragment.class, "赛事", null),
    ME("我的", R.drawable.selector_tab_mine__, MineFragment.class, "我的", null);


    //标题
    public String title;
    //图片的资源
    public int    image;

    //显示的fragment
    public Class<? extends Fragment> fragment;

    //显示的tag
    public String tag;

    //显示的bundle
    public Bundle bundle;

    MainTabs(String mTitle, int mImage, Class<? extends Fragment> mClss, String mTag, Bundle mBundle) {
        this.title = mTitle;
        this.image = mImage;
        this.fragment = mClss;
        this.tag = mTag;
        this.bundle = mBundle;
    }

}
